import { http } from '@/utils/http'

// 创建我的收藏
export const ApiCreateCollection = (data) => {
  return http.post('/app-api/member/collection/create', data)
}

// 岗位详情取消收藏
export const ApiCancelCollection = (data) => {
  return http.delete('/app-api/member/collection/deleteJob?jobId=' + data.jobId)
}

// 删除收藏
export const ApiDeleteCollection = (data) => {
  return http.delete('/app-api/member/collection/delete', data)
}
//查看当前岗位是否已被收藏
export const ApiGetJobCollectionStatus = (data) => {
  return http.get('/app-api/member/collection/getUserId', data)
}

// 获取收藏分页列表
export const ApiGetCollectionList = (data) => {
  return http.get('/app-api/member/collection/page', data)
}
